//------------------------------------------------------------------------------
//!	@file prt.c
//!	@brief
//!		Print progress indicator
//!
//!	@Description
//!		Print progress indicator
//!
//!	$Id: prt.c 144 2013-02-18 06:20:05Z ac.verbeck@gmail.com $
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
//	Copyright and Disclaimer Notice
//
//	Copyright (c) 2013 A.C. Verbeck
//
//	This file is part of DSP framework: an experimenters library
//
//	DSP framework is free software: you can redistribute it and/or modify
//	it under the terms of the GNU General Public License as published by
//	the Free Software Foundation, either version 3 of the License, or
//	(at your option) any later version.
//
//	DSP framework is distributed in the hope that it will be useful,
//	but WITHOUT ANY WARRANTY; without even the implied warranty of
//	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//	GNU General Public License for more details.
//
//	You should have received a copy of the GNU General Public License
//	along with DSP framework.  If not, see <http://www.gnu.org/licenses/>.
//
//------------------------------------------------------------------------------

#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>

#include "prt.h"

static uint32_t	blk_ct=0;
static const uint16_t llen = 64;

//------------------------------------------------------------------------------
//!	@brief
//!		Print progress indicator (initialization)
//!
//!	@param
//!		none
//!
//!	@return
//!		none
//------------------------------------------------------------------------------
void prt_init(void)
{
	blk_ct = 0;
}

//------------------------------------------------------------------------------
//!	@brief
//!		Print progress indicator (process)
//!
//!	@param
//!		none
//!
//!	@return
//!		none
//------------------------------------------------------------------------------
void prt_proc(void)
{
	blk_ct++;
	printf(".");
	if ((blk_ct % llen) == 0) printf("\n");
}

//------------------------------------------------------------------------------
//!	@brief
//!		Print progress indicator (end)
//!
//!	@param
//!		none
//!
//!	@return
//!		none
//------------------------------------------------------------------------------
void prt_end(void)
{
	printf("\n");
}

//
//	End: prt.c
//